package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.quality.QualityDetailedTable;
import com.ruoyi.system.domain.quality.QualityFinishedExamine;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author GE-LV5
 * @create 2023/2/25 15:45
 */
public interface QualityFinishedExamineMapper  extends BaseMapper<QualityFinishedExamine> {
    /**
     * 查询成品检验单
     *
     * @return 操作步骤
     */
    public List<QualityFinishedExamine> selectQualityFinishedExamine(@Param("vo") QualityFinishedExamine vo);

    /**
     * 新增成品检验单
     *
     * @param quality 成品检验单
     * @return 结果
     */
    public int insertQualityFinishedExamine(QualityFinishedExamine quality);


    /**
     * 新增成品检验单详情
     *
     * @param quality 成品检验单
     * @return 结果
     */
    public AjaxResult insertQuality(QualityDetailedTable quality);



    /**
     * 删除成品检验单
     *
     * @param id 总成计划主键
     * @return 结果
     */
    public int deleteQualityFinishedExamineById(@Param("id") Long id);


    /**
     * 查询区域
     *
     * @param id 区域主键
     * @return 区域
     */
    public QualityFinishedExamine selectSetAreaById(@Param("id") Long id);
}
